package com.xebest.web.mapper.read;

import com.xebest.web.form.XeVenAfterSaleCheckForm;
import com.xebest.web.form.XeVenRejectQueryForm;
import com.xebest.web.model.XeVenGoodsRejectEntity;
import com.xebest.web.view.XeVenRejectView;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 退货单查询相关mapper
 *
 * @author chenjing
 */
public interface XeVenGoodsRejectReadMapper {

    /**
     * 根据售后单号查询退货单信息
     *
     * @author chenjing
     */
    XeVenGoodsRejectEntity selectByAfterSalesCode(@Param("afterSalesCode") String afterSalesCode, @Param("userCode") String userCode);

    /**
     * 根据退货单号查询退货单信息
     *
     * @author chenjing
     */
    XeVenGoodsRejectEntity selectByRejectCode(@Param("rejectCode") String rejectCode, @Param("userCode") String userCode);

    /**
     * 查询退货单列表信息
     *
     * @author chenjing
     */
    List<XeVenRejectView> queryRejectList(XeVenRejectQueryForm form);


    /**
     * 根据退货单号查询退货单列表
     *
     * @author chenjing
     */
    List<XeVenGoodsRejectEntity> queryRejectListByCods(XeVenAfterSaleCheckForm form);

}